import request from '@/utils/request'

// 查询后端服务器列表
export function listBackserver(query) {
  return request({
    url: '/lbconfig/backserver/list',
    method: 'get',
    params: query
  })
}

// 查询后端服务器详细
export function getBackserver(id) {
  return request({
    url: '/lbconfig/backserver/' + id,
    method: 'get'
  })
}

// 新增后端服务器
export function addBackserver(data) {
  return request({
    url: '/lbconfig/backserver',
    method: 'post',
    data: data
  })
}

// 修改后端服务器
export function updateBackserver(data) {
  return request({
    url: '/lbconfig/backserver',
    method: 'put',
    data: data
  })
}

// 删除后端服务器
export function delBackserver(id) {
  return request({
    url: '/lbconfig/backserver/' + id,
    method: 'delete'
  })
}
